<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta name="keywords" content="<%= keywords %>" />
        <meta name="description" content="" />
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title><%= controller.action_name %></title>
		
        <link href="<%=statics_url%>/templates/simple/styles.css" rel="stylesheet" type="text/css" media="screen" />
    	<%= javascript_include_tag :defaults %>
  		<%= javascript_include_tag 'http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php' %>
  		<%= yield :javascripts %>
	</head>
    <body>
    	
        	<%= render :partial => "sessions/session_info"%>
		
    	
		
        <div style="color: green">
            <%= flash[:notice] %>
        </div>
        <div style="color: red">
            <%= flash[:error] %>
        </div>
        <div id="wrapper">
        	<!--Session info-->
			
            <div id="page">
                <div id="content">
                    <%= yield :layout %>
                    <div style="clear: both;">
                        &nbsp;
                    </div>
                </div>
                <!-- end #content -->
                <!-- end #sidebar -->
                <div style="clear: both;">
                    &nbsp;
                </div>
            </div>
            <!-- end #page -->
        </div>
        
        <!-- end #footer -->
    </body>
</html>
 <%= javascript_tag "window.api_key = '#{Facebooker.api_key}';" %>
 <%= javascript_tag "window.xd_receiver_location = '#{ENV['XD_RECEIVER_LOCATION']}';" %>
 <%= javascript_tag "window.facebook_authenticate_location = '#{ENV['FACEBOOK_AUTHENTICATE_LOCATION']}';" %>
 <%= javascript_include_tag 'facebook_scripts' %>
